package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void addOrderSetting(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByYearAndMonth(Map dateMap);

    /**
     * 基于预约日期获取预约设置
     * @param orderDate
     */
    OrderSetting findByOrderDate(Date orderDate);

    /**
     * 更新预约设置天数
     * @param orderSetting
     */
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
